<#macro topPlan lastTestPlan >
 <div id="topTitle">
     <div class="breadLine" id="menuLine">
         <div id="Menu" class="menuDiv breadcrumbs">
             <button class='buttonS bBlue' id='pointeredit'
                     style=' margin-left: 1%; height: 25px; margin-top: 1px; padding:0px;'
                     onclick='testPlan.editPlan();'><i
                     class='icon-edit icon-dj'></i>修改测试计划
             </button>
             <button class='buttonS bBlue' id='pointeredit'
                     style='margin-left: 1%; height: 25px; margin-top: 1px; padding:0px;'
                     onclick='runTest.runTestPlan();'><i
                     class='icon-file icon-dj'></i>运行测试计划
             </button>
             <button class='buttonS bBlue' id='pointeredit'
                     style='margin-left: 1%; height: 25px; margin-top: 1px; padding:0px;'
                     onclick='runTest.stopRun();'><i
                     class='icon-file icon-dj'></i>停止测试计划
             </button>
             <button class='buttonS bBlue' id='pointerdel'
                     style='margin-left: 1%; height: 25px; margin-top: 1px; padding:0px;'
                     onclick='testPlan.deletePlan(${lastTestPlan.testPlanId!});'><i
                     class='icon-remove icon-dj'></i>删除测试计划
             </button>
         </div>
     </div>

     <#assign testPlanDetailList =lastTestPlan.testPlanDetailList/>
     <table class='table table-striped table-bordered'>
         <thead>
         <tr>
             <th style='text-align: center;'>最后一次执行时间</th>
             <th style='text-align: center;'>计划名称</th>
             <th style="text-align: center">运行状态</th>
             <th style='text-align: center;'>用例总数</th>
             <th style='text-align: center;'>通过数</th>
             <th style='text-align: center;'>通过率</th>
             <th style='text-align: center;'>运行时长(分)</th>
             <th style="text-align: center">日志</th>
             <th style="text-align: center">运行人</th>
         </tr>
         </thead>
         <tbody id='planView_taskList'>
         <tr style="text-align: center">
             <td style='width: 15%;' id="lastStartTime">#</td>
             <td id="topTestPlanName">
                 ${lastTestPlan.testPlanName!}
             </td>
             <Td id="lastStatus">

             </Td>
             <td id="topCaseSize">
                 ${testPlanDetailList?size!}
             </td>
             <td id="lastPassSizeSize">

             </td>
             <td id="lastPassRate">

             </td>
             <td id="lastRunTime">

             </td>
             <td id="lastLog">

             </td>
             <td id="runUser">

             </td>
         </tr>
         </tbody>
     </table>
          <div id="buildTrend">

          </div>

         <div class="container-fluid"
              style="background-color: white;overflow: auto;position: relative; min-height: 450px;"
              id="container-fluid" <#if lastTestPlan.planBuildTestList??>style="display: none" </#if> >
             <div>
                 <span class="plan_point">此计划从未执行过.</span>
             </div>
         </div>
 </div>
</#macro>
